package dao;

import java.sql.SQLException;
import java.util.List;

import domain.Product;

public interface ProductDao {
	public List<Product> findAllProducts (int page, int limit) throws SQLException;
	
	public List<Product> findAllProductsByName (String name, int page, int limit) throws SQLException;
	
	public boolean addProduct (Product product) throws SQLException;

	public boolean deleteProduct (String id) throws SQLException;
	
	public Product findProductById (String id) throws SQLException;
	
	public boolean updateProduct (Product product) throws SQLException;

	public boolean updatePnumOfProduct (Product product) throws SQLException;
}
